using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Cookie : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string cookieName = "lafdc-auth";
        foreach (string cookie in Request.Cookies)
        {
            Response.Write("Name: " + Server.HtmlEncode(Request.Cookies[cookie].Name) + "<br/>");
            Response.Write("Domain: " + Server.HtmlEncode(Request.Cookies[cookie].Domain) + "<br/>");
            Response.Write("Value: " + Server.HtmlEncode(Request.Cookies[cookie].Value) + "<br/>");
            Response.Write("Expires: " + Server.HtmlEncode(Request.Cookies[cookie].Expires.ToString()) + "<br/>");
        }
        /*
        if (Request.Cookies[cookieName] != null)
        {
            Response.Write(Server.HtmlEncode(Request.Cookies[cookieName].Value));
        }
        else
        {
            Response.Write("No cookies where sent with the request!");
        }
        */
    }
}
